package com.u.tool;

import java.util.List;

import com.u.character.Role;
import com.u.toolbox.AbstractToolBox;
import com.u.toolbox.ToolBox;

public class UserUtil {

	public static void InitialPassword(String useracc) {
		String sql = "select * from y_r.role where user_acc = '"+useracc+"'";
		MysqlUtil db = new MysqlUtil();
		db.connection();
		List<Role> list = db.query(Role.class, sql);
		Role role = list.get(0);
		role.setPassword("111111");
		db.connection();
		db.update(role);
	}
}
